How to: Delete only files with a certain extension.
Solution:
Use 'Find' to display all files with a certain extension that are in a selected folder. Select the files, select the 'File' menu, and select 'Delete'.
1) Open Windows Explorer. (The 'Windows Explorer' dialog box appears.)
'Explorer' in 'Start' menu
2) In the left pane, double-click the desired drive and double-click the folder(s) from which you want to delete files.
3) Select the 'Tools' menu and select 'Find'. (A submenu appears.)
4) Select 'Files or Folders...'. (The 'Find: All Files' dialog box appears, with the selected folder already in the 'Look in' drop-down list box.)
5) Click the 'Name & Location' tab.
6) Type the following in the 'Named' box:
*.<xxx>
(where <xxx> is the extension of the file type you want to delete).
7) (Optional) Select the 'Include subfolders' check box.
8) Click 'Find Now'. (The dialog box expands to show a list of all files in the selected folder having the specified file extension.)
9) Select the 'Edit' menu and select 'Select All'. (All files are highlighted.)
10) Select the 'File' menu and select 'Delete'. (A message appears, asking you to confirm the deletion.)
11) Click 'Yes'.
NOTE: If you are deleting files from your hard drive and have specified use of the 'Recycle Bin' the files that were deleted will appear there.